home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utilmus / hip223.lha / HippoPlayer / Install < prev    next >
Text File  |  1996-03-21  |  5KB  |  320 lines

  1. ; $VER: Install HippoPlayer
  2. ;
  3. ;       Installer script for HippoPlayer.
  4. ;
  5. ;(C) 31.X.1995 Tomasz Kepa
  6. ;
  7. ; Major modifications by K-P
  8. ;
  9.  
  10.  
  11. (complete 0)
  12.  
  13. (set DEST-DIR
  14.   (askdir
  15.     (prompt "Where do you want to install HippoPlayer?")
  16.     (help (cat @askdir-help)
  17.     )
  18.     (default "SYS:")
  19.   )
  20. )
  21.  
  22. (delete "s:hip-script")
  23.  
  24. (copyfiles
  25.   (source "HiP")
  26.   (dest DEST-DIR)
  27. )
  28.  
  29. (set NUMBER
  30.   (askchoice
  31.     (prompt "Select an icon for HippoPlayer")
  32.     (help
  33.       (cat
  34.         "You can choose one icon for HippoPlayer. There are"
  35.         "\nsome icons for normal WB with 4 colors, couple"
  36.         "\nof colorful icons for MagicWB users and one for"
  37.         "\nNewIcons.\n\n"
  38.         @askchoice-help
  39.       )
  40.     )
  41.     (choices
  42.       "Face portrait (4 colors; all kickstarts)"
  43.       "Smaller face portrait (4 colors; all kickstarts)"
  44.       "Hippo-text (MagicWB)"
  45.       "Colorful face portrait (MagicWB)"
  46.       "Speakers (MagicWB)"
  47.       "Another face portrait (MagicWB)"
  48.       "Whole Hippo (NewIcons)"
  49.     )
  50.     (default 0)
  51.   )
  52. )
  53.  
  54. (complete 10)
  55.  
  56. (if (= NUMBER 0)
  57.   (copyfiles
  58.     (source "HiP.info")
  59.     (dest DEST-DIR)
  60.   )
  61. )
  62.  
  63. (if (= NUMBER 1)
  64.   (copyfiles
  65.     (source "Icons/HiP2.info")
  66.     (dest DEST-DIR)
  67.     (newname "HiP.info")
  68.   )
  69. )
  70.  
  71. (if (= NUMBER 2)
  72.   (copyfiles
  73.     (source "Icons/HiP_MWB.info")
  74.     (dest DEST-DIR)
  75.     (newname "HiP.info")
  76.   )
  77. )
  78.  
  79. (if (= NUMBER 3)
  80.   (copyfiles
  81.     (source "Icons/HiP_MWB2.info")
  82.     (dest DEST-DIR)
  83.     (newname "HiP.info")
  84.   )
  85. )
  86.  
  87. (if (= NUMBER 4)
  88.   (copyfiles
  89.     (source "Icons/HiP_MWB3.info")
  90.     (dest DEST-DIR)
  91.     (newname "HiP.info")
  92.   )
  93. )
  94.  
  95. (if (= NUMBER 5)
  96.   (copyfiles
  97.     (source "Icons/HiP_MWB4.info")
  98.     (dest DEST-DIR)
  99.     (newname "HiP.info")
  100.   )
  101. )
  102.  
  103. (if (= NUMBER 6)
  104.   (copyfiles
  105.     (source "Icons/HiP_NI.info")
  106.     (dest DEST-DIR)
  107.     (newname "HiP.info")
  108.   )
  109. )
  110.  
  111. (set DOCS
  112.   (askbool
  113.     (prompt "\n\n\n\n\nDo you want to install the documentation?")
  114.     (help (cat
  115.     "You really should."
  116.         )
  117.     )
  118.     (default 1)
  119.   )
  120. )
  121.  
  122. (complete 20)
  123.  
  124. (if (= DOCS 1)
  125.   (set DOC
  126.     (askoptions
  127.       (prompt "Which type of documentation do you want?")
  128.       (help (cat @askoptions-help))
  129.       (choices
  130.         "ASCII"
  131.         "AmigaGuide"
  132.       )
  133.       (default 2)
  134.     )
  135.   )
  136. )
  137.  
  138.  
  139. (if (= DOCS 1)
  140.  (set DEST-DIR2
  141.    (askdir
  142.      (prompt "Select destination directory for the documentation")
  143.      (help (cat @askdir-help)
  144.      )
  145.      (default DEST-DIR)
  146.    )
  147.  )
  148.  
  149. (if (= DOC 1)
  150.   (copyfiles
  151.     (source "")
  152.     (dest DEST-DIR2)
  153.     (choices
  154.       "HiP.doc"
  155.       "HiP.doc.info"
  156.     )
  157.   )
  158. )
  159.  
  160. (complete 30)
  161.  
  162. (if (= DOC 2)
  163.   (copyfiles
  164.     (source "")
  165.     (dest DEST-DIR2)
  166.     (choices
  167.       "HiP.guide"
  168.       "HiP.guide.info"
  169.     )
  170.   )
  171. )
  172.  
  173. (if (= DOC 3)
  174.   (copyfiles
  175.     (source "")
  176.     (dest DEST-DIR2)
  177.     (choices
  178.       "HiP.doc"
  179.       "HiP.doc.info"
  180.       "HiP.guide"
  181.       "HiP.guide.info"
  182.     )
  183.   )
  184. )
  185.  
  186.  
  187. (complete 40)
  188.  
  189. (copyfiles
  190.   (source "")
  191.   (dest
  192.     (askdir
  193.       (prompt
  194.         (cat
  195.           "Select destination directory for HippoPlayer.group"
  196.         )
  197.       )
  198.       (help
  199.         (cat
  200.       "This file contains some playroutines for different music"
  201.       " formats. It is adviced to install it."
  202.           " The place of HippoPlayer.group can also be defined"
  203.           " later in HippoPlayer.\n\n"
  204.           @askdir-help
  205.         )
  206.       )
  207.       (default "S:")
  208.     )
  209.   )
  210.   (choices
  211.     "HippoPlayer.group"
  212.   )
  213. )
  214.  
  215. (complete 50)
  216.  
  217.  
  218. (if (exists "S:HippoPlayer.PS3M")
  219.   (if (=
  220.     (askbool
  221.       (prompt (cat
  222.             "\n\n\n\n\nDo you want to overwrite S:HippoPlayer.PS3M?"
  223.           )
  224.       )
  225.       (help
  226.         (cat "Don't overwrite if you want to keep your PS3M settings." 
  227.          "\nDo overwrite if you're updating from v2.12 or older.")
  228.       )
  229.     ) 1)
  230.     (copyfiles
  231.       (source "HippoPlayer.PS3M")
  232.       (dest "S:")
  233.     )
  234.   )
  235. )
  236.  
  237. (complete 60)
  238.  
  239. (copylib
  240.   (source "Libs/ReqTools.library")
  241.   (dest "Libs:")
  242.   (confirm)
  243.   (prompt "\n\n\nDo you want to install the reqtools.library?")
  244.   (help
  245.     (cat
  246.       "Reqtools.library is needed for requesters in HippoPlayer."
  247.       " Library version for kickstart 1.2/1.3 is included.\n\n"
  248.       @copylib-help
  249.     )
  250.   )
  251. )
  252.  
  253. (complete 70)
  254.  
  255. (if (=
  256.   (askbool
  257.     (prompt "\n\n\n\n\nDo you want to install the ARexx scripts?")
  258.     (help
  259.       (cat
  260.         "Some might be useful.\n\n"
  261.       )
  262.     )
  263.   ) 1)
  264.   (copyfiles
  265.     (source "ARexx")
  266.     (dest
  267.       (askdir
  268.         (prompt "Select destination directory for ARexx scripts")
  269.         (help
  270.           (cat
  271.             @askdir-help
  272.           )
  273.         )
  274.         (default "REXX:")
  275.       )
  276.     )
  277.     (all)
  278.   )
  279. )
  280.  
  281. (complete 80)
  282.  
  283. (if (=
  284.   (askbool
  285.     (prompt "\n\n\n\n\nDo you want to copy HippoPlayer brush for ToolManager somewhere?")
  286.     (help
  287.       (cat
  288.       )
  289.     )
  290.   ) 1)
  291.   (copyfiles
  292.     (source "Brushes")
  293.     (dest
  294.       (askdir
  295.         (prompt "Select destination directory for the brush")
  296.         (help
  297.           (cat
  298.             @askdir-help
  299.           )
  300.         )
  301.         (default "SYS:")
  302.       )
  303.     )
  304.     (all)
  305.   )
  306. )
  307.  
  308.  
  309. (complete 100)
  310.  
  311. (message
  312.   (cat
  313.     "\n\n\n\n"
  314.     "Check out the ARexx/, Scopes/ and the Support/ directories."
  315.     " There are some stuff that might be useful or fun.\n\n"
  316.     "Finally, READ THE DOC!"
  317.   )
  318. )
  319.